﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;

namespace DAO
{
    public class ConectionClass
    {
        protected static OleDbConnection CreateConnection()
        {
            string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\data.mdb;";
            try
            {
                OleDbConnection conn = new OleDbConnection(strConn);
                conn.Open();
                return conn;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
